#!/bin/sh
DOWNLOAD=~/下载
ZOTERO_URL=https://download.zotero.org/client/release/6.0.35/Zotero-6.0.35_linux-x86_64.tar.bz2
ZOTERO=Zotero-6.0.35_linux-x86_64.tar.bz2
if [ ! -f ${DOWNLOAD}/${ZOTERO} ]; then
	wget -o ${DOWNLOAD}/${ZOTERO} ${ZOTERO_URL}
fi

sudo mkdir -p /opt/zotero
sudo chmod a+w /opt/zotero
tar xjf ${ZOTERO} -c /opt/zotero
